package org.hilo.boot.core.dubbo;

import org.jretty.util.ExceptionUtils.StackTraceFilter;

/**
 * 异常堆栈信息简化工具
 * 
 * @author zollty
 * @since 2020年11月2日
 */
public class DubboStackTraceFilter implements StackTraceFilter {
    
    private DubboStackTraceFilter() {}
    
    // 贫血单例模式
    private static class LazyHolder {
        private static final DubboStackTraceFilter INSTANCE = new DubboStackTraceFilter();
    }

    public static DubboStackTraceFilter me() {
        return LazyHolder.INSTANCE;
    }

    @Override
    public boolean exclude(String className) {
        return className.startsWith("com.alibaba.dubbo");
    }
    
}
